from urllib.parse import urlparse


def get_domain(url):
    parsed_url = urlparse(url)
    domain = parsed_url.netloc
    return domain


def is_inner_link(url, domain_contain_set):
    domain = get_domain(url)
    for domain_contain in domain_contain_set:
        if domain_contain in domain:
            return True
    return False


# print(get_domain("https://192.168.1.122/"))
